<%-- 
    Document   : foto
    Created on : 16-dic-2011, 14.24.08
    Author     : sestari
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>


<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />           
            <f:loadBundle basename="message.message" var="msg"/>        
            <title> <h:outputText value="#{msg.paginavpazinete}"/> </title>
        </head>

        <h:form>
         
            
            <h:panelGrid columns="2"  title="#{msg.paginavpazinete}">
                <rich:fileUpload fileUploadListener="#{beanFormfoto.listener}"
                                 maxFilesQuantity="1"
                                 id="upload"
                                 immediateUpload="true"
                                 acceptedTypes="jpg, gif, png, bmp" >
                    <a4j:support event="onuploadcomplete" reRender="info" />
                </rich:fileUpload>  
                <h:commandButton value="OK" action="#{beanFormfoto.clearUploadData()}"/>
            </h:panelGrid>
        </h:form>

    </html>
</f:view>
